package tech.wangpai.filter;

import org.apache.shiro.cache.ehcache.EhCacheManager;
import org.apache.shiro.web.filter.AccessControlFilter;
import tech.wangpai.session.OnlineWebSessionManager;

import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

/**
 * 登录帐号控制过滤器
 */
public class KickoutSessionFilter extends AccessControlFilter {
    @Override
    protected boolean isAccessAllowed(ServletRequest servletRequest, ServletResponse servletResponse, Object o) throws Exception {
        return false;
    }

    @Override
    protected boolean onAccessDenied(ServletRequest servletRequest, ServletResponse servletResponse) throws Exception {
        return false;
    }

    public void setCacheManager(EhCacheManager ehCacheManager) {
    }

    public void setSessionManager(OnlineWebSessionManager sessionManager) {
    }

    public void setMaxSession(int maxSession) {
    }

    public void setKickoutAfter(boolean kickoutAfter) {
    }

    public void setKickoutUrl(String s) {
    }
}
